package test02.property.configuration;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class HelloLog4j {

	private static final Logger logger = Logger.getLogger(HelloLog4j.class);

	public static void main(String[] args) {
		// custom configuration
		// Log4j should be configured only once for the entire application.
		PropertyConfigurator
				.configure("C:/Documents and Settings/"
						+ "Bozhidar Bozhanov/Desktop/installs/eclipse2/"
						+ "workspace/test-logging/src/test02/property/configuration/log4j.properties");
		logger.trace(" TRACE message");
		logger.debug(" DEBUG message");
		logger.info(" INFO message");
		logger.warn(" WARN message");
		logger.error(" ERROR message");
		logger.fatal(" FATAL message");
	}
}
